import request from '@/utils/request'

export default {
  createOrder(orderVo) {
    return request({
      url: '/serviceorder/front/order/createOrder',
      method: 'post',
      data: orderVo
    })
  },
  pay(type, key) {
    return request({
      url: `/serviceorder/front/order/pay/${type}/${key}`,
      method: 'get'
    })
  },
  getOrderBymemberId(memberId, current, count) {
    return request({
      url: `/serviceorder/front/order/getOrderBymemberId/${memberId}/${current}/${count}`,
      method: 'get'
    })
  },
  getCourseBymemberId(memberId) {
    return request({
      url: `/serviceorder/front/order/getCourseBymemberId/${memberId}`,
      method: 'get'
    })
  },
  getOrderInfo(orderNo) {
    return request({
      url: `/serviceorder/front/order/getInfoByOrderNo/${orderNo}`,
      method: 'get'
    })
  }
}